package com.ls.controller.issend;

import com.ls.controller.issend.model.SendStatusModel;
import com.ls.service.IIsSendService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * <p>
 * 是否发送 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "是否发送相关接口", tags = "是否发送相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/isSend")
public class IsSendController {
    private final IIsSendService service;
    /**查看全部*/
    @GetMapping("getIsSend")
    public ResultData getIsSend() {
        return service.getIsSend();
    }
    /**修改发送状态*/
    @PostMapping("updateSendStatus")
    public ResultData updateSendStatus(@Valid @RequestBody SendStatusModel model) {
        return service.updateSendStatus(model);
    }
}
